// SquareLine LVGL GENERATED FILE
// EDITOR VERSION: SquareLine Studio 1.0.5
// LVGL VERSION: 8.2
// PROJECT: SquareLine_Project

#include "ui.h"
#include "ui_helpers.h"

///////////////////// VARIABLES ////////////////////
lv_obj_t *ui_Screen1;
lv_obj_t *ui_MainUI;
lv_obj_t *ui_UPDOWN;
lv_obj_t *ui_CPUtext;
lv_obj_t *ui_CPUUse;
lv_obj_t *ui_CPUName;
lv_obj_t *ui_SSD;
lv_obj_t *ui_Image2;
lv_obj_t *ui_Image3;
lv_obj_t *ui_Panel2;
lv_obj_t *ui_SSD1D;
lv_obj_t *ui_Image1;
lv_obj_t *ui_SSD2D;
lv_obj_t *ui_Image5;
lv_obj_t *ui_Label1;
lv_obj_t *ui_Label2;
lv_obj_t *ui_SSD1B;
lv_obj_t *ui_SSD2B;
lv_obj_t *ui_RAM;
lv_obj_t *ui_RAM1;
lv_obj_t *ui_RAMB;
lv_obj_t *ui_Label5;
lv_obj_t *ui_Image6;
lv_obj_t *ui_CPUTemp;
lv_obj_t *ui_Image4;
lv_obj_t *ui_CPUTempB;
lv_obj_t *ui_CPUfequence;
lv_obj_t *ui_CPUfequence1;
lv_obj_t *ui_CPUfequenceB;
lv_obj_t *ui_Image7;
lv_obj_t *ui_Button1;
lv_obj_t *ui_NIC1DownSpeed;
lv_obj_t *ui_Screen2;
lv_obj_t *ui_hours;
lv_obj_t *ui_min;
lv_obj_t *ui_sec;
lv_obj_t *ui_year;
lv_obj_t *ui_month;
lv_obj_t *ui_Day;
lv_obj_t *ui_day;
lv_obj_t *ui_Lable0;
lv_obj_t *ui_Lable1;
lv_obj_t *ui_Button2;
lv_obj_t *ui_Screen3;
lv_obj_t *ui_Button3;

///////////////////// TEST LVGL SETTINGS ////////////////////
#if LV_COLOR_DEPTH != 16
#error "LV_COLOR_DEPTH should be 16bit to match SquareLine Studio's settings"
#endif
#if LV_COLOR_16_SWAP != 0
#error "#error LV_COLOR_16_SWAP should be 0 to match SquareLine Studio's settings"
#endif

///////////////////// ANIMATIONS ////////////////////

///////////////////// FUNCTIONS ////////////////////
static void ui_event_Button1(lv_event_t *e)
{
    lv_event_code_t event = lv_event_get_code(e);
    lv_obj_t *ta = lv_event_get_target(e);
    if (event == LV_EVENT_CLICKED)
    {
        _ui_screen_change(ui_Screen2, LV_SCR_LOAD_ANIM_FADE_ON, 500, 0);
    }
}
static void ui_event_Button2(lv_event_t *e)
{
    lv_event_code_t event = lv_event_get_code(e);
    lv_obj_t *ta = lv_event_get_target(e);
    if (event == LV_EVENT_CLICKED)
    {
        _ui_screen_change(ui_Screen3, LV_SCR_LOAD_ANIM_FADE_ON, 500, 0);
    }
}
static void ui_event_Button3(lv_event_t *e)
{
    lv_event_code_t event = lv_event_get_code(e);
    lv_obj_t *ta = lv_event_get_target(e);
    if (event == LV_EVENT_CLICKED)
    {
        _ui_screen_change(ui_Screen1, LV_SCR_LOAD_ANIM_FADE_ON, 500, 0);
    }
}

///////////////////// SCREENS ////////////////////
void ui_Screen1_screen_init(void)
{

    // ui_Screen1

    ui_Screen1 = lv_obj_create(NULL);

    lv_obj_clear_flag(ui_Screen1, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_set_style_bg_color(ui_Screen1, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_Screen1, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_MainUI

    ui_MainUI = lv_img_create(ui_Screen1);
    lv_img_set_src(ui_MainUI, &ui_img_ui1_png);

    lv_obj_set_width(ui_MainUI, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_MainUI, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_MainUI, -102);
    lv_obj_set_y(ui_MainUI, -43);

    lv_obj_set_align(ui_MainUI, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_MainUI, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_MainUI, LV_OBJ_FLAG_SCROLLABLE);

    // ui_UPDOWN

    ui_UPDOWN = lv_img_create(ui_Screen1);
    lv_img_set_src(ui_UPDOWN, &ui_img_upload_png);

    lv_obj_set_width(ui_UPDOWN, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_UPDOWN, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_UPDOWN, -210);
    lv_obj_set_y(ui_UPDOWN, 92);

    lv_obj_set_align(ui_UPDOWN, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_UPDOWN, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_UPDOWN, LV_OBJ_FLAG_SCROLLABLE);

    // ui_CPUtext

    ui_CPUtext = lv_img_create(ui_Screen1);
    lv_img_set_src(ui_CPUtext, &ui_img_cpu_png);

    lv_obj_set_width(ui_CPUtext, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_CPUtext, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_CPUtext, -23);
    lv_obj_set_y(ui_CPUtext, 70);

    lv_obj_set_align(ui_CPUtext, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_CPUtext, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_CPUtext, LV_OBJ_FLAG_SCROLLABLE);

    // ui_CPUUse

    ui_CPUUse = lv_label_create(ui_Screen1);

    lv_obj_set_width(ui_CPUUse, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_CPUUse, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_CPUUse, -83);
    lv_obj_set_y(ui_CPUUse, -44);

    lv_obj_set_align(ui_CPUUse, LV_ALIGN_CENTER);

    lv_label_set_text(ui_CPUUse, "86%");

    // ui_CPUName

    ui_CPUName = lv_label_create(ui_Screen1);

    lv_obj_set_width(ui_CPUName, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_CPUName, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_CPUName, -7);
    lv_obj_set_y(ui_CPUName, 66);

    lv_obj_set_align(ui_CPUName, LV_ALIGN_CENTER);

    lv_label_set_text(ui_CPUName, "i5-10200H");

    lv_obj_set_style_text_color(ui_CPUName, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_CPUName, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_decor(ui_CPUName, LV_TEXT_DECOR_UNDERLINE, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_CPUName, &lv_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_SSD

    ui_SSD = lv_obj_create(ui_Screen1);

    lv_obj_set_width(ui_SSD, 170);
    lv_obj_set_height(ui_SSD, 155);

    lv_obj_set_x(ui_SSD, 145);
    lv_obj_set_y(ui_SSD, 73);

    lv_obj_set_align(ui_SSD, LV_ALIGN_CENTER);

    lv_obj_clear_flag(ui_SSD, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_set_style_bg_color(ui_SSD, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_SSD, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui_SSD, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui_SSD, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Image2

    ui_Image2 = lv_img_create(ui_SSD);
    lv_img_set_src(ui_Image2, &ui_img_ssdlogo_png);

    lv_obj_set_width(ui_Image2, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Image2, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Image2, -56);
    lv_obj_set_y(ui_Image2, -56);

    lv_obj_set_align(ui_Image2, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Image2, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_Image2, LV_OBJ_FLAG_SCROLLABLE);

    // ui_Image3

    ui_Image3 = lv_img_create(ui_SSD);
    lv_img_set_src(ui_Image3, &ui_img_ssdlogo_png);

    lv_obj_set_width(ui_Image3, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Image3, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Image3, 31);
    lv_obj_set_y(ui_Image3, -56);

    lv_obj_set_align(ui_Image3, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Image3, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_Image3, LV_OBJ_FLAG_SCROLLABLE);

    // ui_Panel2

    ui_Panel2 = lv_obj_create(ui_SSD);

    lv_obj_set_width(ui_Panel2, 170);
    lv_obj_set_height(ui_Panel2, 2);

    lv_obj_set_x(ui_Panel2, 2);
    lv_obj_set_y(ui_Panel2, -39);

    lv_obj_set_align(ui_Panel2, LV_ALIGN_CENTER);

    lv_obj_clear_flag(ui_Panel2, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_set_style_radius(ui_Panel2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui_Panel2, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_Panel2, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui_Panel2, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui_Panel2, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_SSD1D

    ui_SSD1D = lv_bar_create(ui_SSD);
    lv_bar_set_range(ui_SSD1D, 0, 100);
    lv_bar_set_value(ui_SSD1D, 60, LV_ANIM_OFF);

    lv_obj_set_width(ui_SSD1D, 17);
    lv_obj_set_height(ui_SSD1D, 70);

    lv_obj_set_x(ui_SSD1D, -56);
    lv_obj_set_y(ui_SSD1D, 31);

    lv_obj_set_align(ui_SSD1D, LV_ALIGN_CENTER);

    lv_obj_set_style_radius(ui_SSD1D, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_img_src(ui_SSD1D, &ui_img_ssd2_png, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_img_opa(ui_SSD1D, 15, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_set_style_radius(ui_SSD1D, 0, LV_PART_INDICATOR | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui_SSD1D, lv_color_hex(0x000000), LV_PART_INDICATOR | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_SSD1D, 255, LV_PART_INDICATOR | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_img_src(ui_SSD1D, &ui_img_ssd2_png, LV_PART_INDICATOR | LV_STATE_DEFAULT);

    // ui_Image1

    ui_Image1 = lv_img_create(ui_SSD);
    lv_img_set_src(ui_Image1, &ui_img_ssd1_png);

    lv_obj_set_width(ui_Image1, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Image1, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Image1, -45);
    lv_obj_set_y(ui_Image1, 30);

    lv_obj_set_align(ui_Image1, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Image1, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_Image1, LV_OBJ_FLAG_SCROLLABLE);

    // ui_SSD2D

    ui_SSD2D = lv_bar_create(ui_SSD);
    lv_bar_set_range(ui_SSD2D, 0, 100);
    lv_bar_set_value(ui_SSD2D, 30, LV_ANIM_OFF);

    lv_obj_set_width(ui_SSD2D, 17);
    lv_obj_set_height(ui_SSD2D, 70);

    lv_obj_set_x(ui_SSD2D, 32);
    lv_obj_set_y(ui_SSD2D, 31);

    lv_obj_set_align(ui_SSD2D, LV_ALIGN_CENTER);

    lv_obj_set_style_radius(ui_SSD2D, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_img_src(ui_SSD2D, &ui_img_ssd2_png, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_img_opa(ui_SSD2D, 15, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_set_style_radius(ui_SSD2D, 0, LV_PART_INDICATOR | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui_SSD2D, lv_color_hex(0x000000), LV_PART_INDICATOR | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_SSD2D, 255, LV_PART_INDICATOR | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_img_src(ui_SSD2D, &ui_img_ssd2_png, LV_PART_INDICATOR | LV_STATE_DEFAULT);

    // ui_Image5

    ui_Image5 = lv_img_create(ui_SSD);
    lv_img_set_src(ui_Image5, &ui_img_ssd1_png);

    lv_obj_set_width(ui_Image5, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Image5, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Image5, 44);
    lv_obj_set_y(ui_Image5, 30);

    lv_obj_set_align(ui_Image5, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Image5, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_Image5, LV_OBJ_FLAG_SCROLLABLE);

    // ui_Label1

    ui_Label1 = lv_label_create(ui_SSD);

    lv_obj_set_width(ui_Label1, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Label1, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Label1, -54);
    lv_obj_set_y(ui_Label1, -23);

    lv_obj_set_align(ui_Label1, LV_ALIGN_CENTER);

    lv_label_set_text(ui_Label1, "SSD1");

    lv_obj_set_style_text_color(ui_Label1, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_Label1, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_decor(ui_Label1, LV_TEXT_DECOR_UNDERLINE, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Label2

    ui_Label2 = lv_label_create(ui_SSD);

    lv_obj_set_width(ui_Label2, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Label2, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Label2, 34);
    lv_obj_set_y(ui_Label2, -23);

    lv_obj_set_align(ui_Label2, LV_ALIGN_CENTER);

    lv_label_set_text(ui_Label2, "SSD2");

    lv_obj_set_style_text_color(ui_Label2, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_Label2, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_decor(ui_Label2, LV_TEXT_DECOR_UNDERLINE, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_SSD1B

    ui_SSD1B = lv_label_create(ui_SSD);

    lv_obj_set_width(ui_SSD1B, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_SSD1B, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_SSD1B, -33);
    lv_obj_set_y(ui_SSD1B, 39);

    lv_obj_set_align(ui_SSD1B, LV_ALIGN_CENTER);

    lv_label_set_text(ui_SSD1B, "86\n%");

    lv_obj_set_style_text_color(ui_SSD1B, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_SSD1B, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_SSD2B

    ui_SSD2B = lv_label_create(ui_SSD);

    lv_obj_set_width(ui_SSD2B, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_SSD2B, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_SSD2B, 56);
    lv_obj_set_y(ui_SSD2B, 40);

    lv_obj_set_align(ui_SSD2B, LV_ALIGN_CENTER);

    lv_label_set_text(ui_SSD2B, "89\n%");

    lv_obj_set_style_text_color(ui_SSD2B, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_SSD2B, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_RAM

    ui_RAM = lv_obj_create(ui_Screen1);

    lv_obj_set_width(ui_RAM, 170);
    lv_obj_set_height(ui_RAM, 66);

    lv_obj_set_x(ui_RAM, 145);
    lv_obj_set_y(ui_RAM, -46);

    lv_obj_set_align(ui_RAM, LV_ALIGN_CENTER);

    lv_obj_clear_flag(ui_RAM, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_set_style_radius(ui_RAM, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui_RAM, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_RAM, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui_RAM, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui_RAM, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_RAM1

    ui_RAM1 = lv_bar_create(ui_RAM);
    lv_bar_set_range(ui_RAM1, 0, 100);
    lv_bar_set_value(ui_RAM1, 25, LV_ANIM_OFF);

    lv_obj_set_width(ui_RAM1, 160);
    lv_obj_set_height(ui_RAM1, 28);

    lv_obj_set_x(ui_RAM1, 0);
    lv_obj_set_y(ui_RAM1, 8);

    lv_obj_set_align(ui_RAM1, LV_ALIGN_CENTER);

    lv_obj_set_style_radius(ui_RAM1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_img_src(ui_RAM1, &ui_img_ram1_png, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_img_opa(ui_RAM1, 15, LV_PART_MAIN | LV_STATE_DEFAULT);

    lv_obj_set_style_radius(ui_RAM1, 0, LV_PART_INDICATOR | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui_RAM1, lv_color_hex(0x000000), LV_PART_INDICATOR | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_RAM1, 255, LV_PART_INDICATOR | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_img_src(ui_RAM1, &ui_img_ram1_png, LV_PART_INDICATOR | LV_STATE_DEFAULT);

    // ui_RAMB

    ui_RAMB = lv_label_create(ui_RAM1);

    lv_obj_set_width(ui_RAMB, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_RAMB, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_RAMB, 1);
    lv_obj_set_y(ui_RAMB, 0);

    lv_obj_set_align(ui_RAMB, LV_ALIGN_CENTER);

    lv_label_set_text(ui_RAMB, "6035 MB");

    lv_obj_set_style_text_color(ui_RAMB, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_RAMB, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Label5

    ui_Label5 = lv_label_create(ui_RAM);

    lv_obj_set_width(ui_Label5, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Label5, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Label5, -62);
    lv_obj_set_y(ui_Label5, -18);

    lv_obj_set_align(ui_Label5, LV_ALIGN_CENTER);

    lv_label_set_text(ui_Label5, "RAM:");

    lv_obj_set_style_text_color(ui_Label5, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_Label5, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Image6

    ui_Image6 = lv_img_create(ui_Screen1);
    lv_img_set_src(ui_Image6, &ui_img_cputext2_png);

    lv_obj_set_width(ui_Image6, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Image6, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Image6, 27);
    lv_obj_set_y(ui_Image6, -112);

    lv_obj_set_align(ui_Image6, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Image6, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_Image6, LV_OBJ_FLAG_SCROLLABLE);

    // ui_CPUTemp

    ui_CPUTemp = lv_obj_create(ui_Screen1);

    lv_obj_set_width(ui_CPUTemp, 92);
    lv_obj_set_height(ui_CPUTemp, 50);

    lv_obj_set_x(ui_CPUTemp, 106);
    lv_obj_set_y(ui_CPUTemp, -119);

    lv_obj_set_align(ui_CPUTemp, LV_ALIGN_CENTER);

    lv_obj_clear_flag(ui_CPUTemp, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_set_style_bg_color(ui_CPUTemp, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_CPUTemp, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui_CPUTemp, lv_color_hex(0x6AFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui_CPUTemp, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Image4

    ui_Image4 = lv_img_create(ui_CPUTemp);
    lv_img_set_src(ui_Image4, &ui_img_cputemp_png);

    lv_obj_set_width(ui_Image4, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Image4, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Image4, -29);
    lv_obj_set_y(ui_Image4, -1);

    lv_obj_set_align(ui_Image4, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Image4, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_Image4, LV_OBJ_FLAG_SCROLLABLE);

    // ui_CPUTempB

    ui_CPUTempB = lv_label_create(ui_CPUTemp);

    lv_obj_set_width(ui_CPUTempB, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_CPUTempB, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_CPUTempB, 11);
    lv_obj_set_y(ui_CPUTempB, 0);

    lv_obj_set_align(ui_CPUTempB, LV_ALIGN_CENTER);

    lv_label_set_text(ui_CPUTempB, "56 'C");

    lv_obj_set_style_text_color(ui_CPUTempB, lv_color_hex(0x00FFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_CPUTempB, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_CPUfequence

    ui_CPUfequence = lv_obj_create(ui_Screen1);

    lv_obj_set_width(ui_CPUfequence, 113);
    lv_obj_set_height(ui_CPUfequence, 43);

    lv_obj_set_x(ui_CPUfequence, -80);
    lv_obj_set_y(ui_CPUfequence, 111);

    lv_obj_set_align(ui_CPUfequence, LV_ALIGN_CENTER);

    lv_obj_clear_flag(ui_CPUfequence, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_set_style_radius(ui_CPUfequence, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui_CPUfequence, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_CPUfequence, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui_CPUfequence, lv_color_hex(0x00FFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui_CPUfequence, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_CPUfequence1

    ui_CPUfequence1 = lv_obj_create(ui_CPUfequence);

    lv_obj_set_width(ui_CPUfequence1, 103);
    lv_obj_set_height(ui_CPUfequence1, 33);

    lv_obj_set_x(ui_CPUfequence1, 0);
    lv_obj_set_y(ui_CPUfequence1, 0);

    lv_obj_set_align(ui_CPUfequence1, LV_ALIGN_CENTER);

    lv_obj_clear_flag(ui_CPUfequence1, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_set_style_radius(ui_CPUfequence1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui_CPUfequence1, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui_CPUfequence1, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_color(ui_CPUfequence1, lv_color_hex(0x00FFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_opa(ui_CPUfequence1, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_CPUfequenceB

    ui_CPUfequenceB = lv_label_create(ui_CPUfequence1);

    lv_obj_set_width(ui_CPUfequenceB, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_CPUfequenceB, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_CPUfequenceB, -2);
    lv_obj_set_y(ui_CPUfequenceB, -1);

    lv_obj_set_align(ui_CPUfequenceB, LV_ALIGN_CENTER);

    lv_label_set_text(ui_CPUfequenceB, "3996 MHz");

    lv_obj_set_style_text_color(ui_CPUfequenceB, lv_color_hex(0x00FFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_CPUfequenceB, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_decor(ui_CPUfequenceB, LV_TEXT_DECOR_UNDERLINE, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_CPUfequenceB, &lv_font_montserrat_18, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Image7

    ui_Image7 = lv_img_create(ui_Screen1);
    lv_img_set_src(ui_Image7, &ui_img_fan_png);

    lv_obj_set_width(ui_Image7, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Image7, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Image7, -83);
    lv_obj_set_y(ui_Image7, -47);

    lv_obj_set_align(ui_Image7, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Image7, LV_OBJ_FLAG_ADV_HITTEST);
    lv_obj_clear_flag(ui_Image7, LV_OBJ_FLAG_SCROLLABLE);

    // ui_Button1

    ui_Button1 = lv_btn_create(ui_Screen1);

    lv_obj_set_width(ui_Button1, 61);
    lv_obj_set_height(ui_Button1, 50);

    lv_obj_set_x(ui_Button1, 14);
    lv_obj_set_y(ui_Button1, 120);

    lv_obj_set_align(ui_Button1, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Button1, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
    lv_obj_clear_flag(ui_Button1, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_add_event_cb(ui_Button1, ui_event_Button1, LV_EVENT_ALL, NULL);
    lv_obj_set_style_opa(ui_Button1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_NIC1DownSpeed

    ui_NIC1DownSpeed = lv_label_create(ui_Screen1);

    lv_obj_set_width(ui_NIC1DownSpeed, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_NIC1DownSpeed, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_NIC1DownSpeed, -173);
    lv_obj_set_y(ui_NIC1DownSpeed, 98);

    lv_obj_set_align(ui_NIC1DownSpeed, LV_ALIGN_CENTER);

    lv_label_set_text(ui_NIC1DownSpeed, "356.3\nKB/s");

    lv_obj_set_style_text_color(ui_NIC1DownSpeed, lv_color_hex(0x52F2F6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_NIC1DownSpeed, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_decor(ui_NIC1DownSpeed, LV_TEXT_DECOR_UNDERLINE, LV_PART_MAIN | LV_STATE_DEFAULT);
}
void ui_Screen2_screen_init(void)
{

    // ui_Screen2

    ui_Screen2 = lv_obj_create(NULL);

    lv_obj_clear_flag(ui_Screen2, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_set_style_bg_img_src(ui_Screen2, &ui_img_yaerbeide_png, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_hours

    ui_hours = lv_label_create(ui_Screen2);

    lv_obj_set_width(ui_hours, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_hours, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_hours, 59);
    lv_obj_set_y(ui_hours, -95);

    lv_obj_set_align(ui_hours, LV_ALIGN_CENTER);

    lv_label_set_text(ui_hours, "22");

    lv_obj_set_style_text_color(ui_hours, lv_color_hex(0x374752), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_hours, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_hours, &lv_font_montserrat_48, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_min

    ui_min = lv_label_create(ui_Screen2);

    lv_obj_set_width(ui_min, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_min, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_min, 152);
    lv_obj_set_y(ui_min, -95);

    lv_obj_set_align(ui_min, LV_ALIGN_CENTER);

    lv_label_set_text(ui_min, "30");

    lv_obj_set_style_text_color(ui_min, lv_color_hex(0x374752), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_min, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_min, &lv_font_montserrat_48, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_sec

    ui_sec = lv_label_create(ui_Screen2);

    lv_obj_set_width(ui_sec, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_sec, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_sec, 202);
    lv_obj_set_y(ui_sec, -88);

    lv_obj_set_align(ui_sec, LV_ALIGN_CENTER);

    lv_label_set_text(ui_sec, "36");

    lv_obj_set_style_text_color(ui_sec, lv_color_hex(0x374752), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_sec, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_sec, &lv_font_montserrat_18, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_year

    ui_year = lv_label_create(ui_Screen2);

    lv_obj_set_width(ui_year, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_year, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_year, 55);
    lv_obj_set_y(ui_year, -56);

    lv_obj_set_align(ui_year, LV_ALIGN_CENTER);

    lv_label_set_text(ui_year, "2022");

    lv_obj_set_style_text_color(ui_year, lv_color_hex(0x374752), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_year, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_year, &lv_font_montserrat_20, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_month

    ui_month = lv_label_create(ui_Screen2);

    lv_obj_set_width(ui_month, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_month, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_month, 97);
    lv_obj_set_y(ui_month, -56);

    lv_obj_set_align(ui_month, LV_ALIGN_CENTER);

    lv_label_set_text(ui_month, "12");

    lv_obj_set_style_text_color(ui_month, lv_color_hex(0x374752), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_month, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_month, &lv_font_montserrat_20, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Day

    ui_Day = lv_label_create(ui_Screen2);

    lv_obj_set_width(ui_Day, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Day, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Day, 125);
    lv_obj_set_y(ui_Day, -56);

    lv_obj_set_align(ui_Day, LV_ALIGN_CENTER);

    lv_label_set_text(ui_Day, "23");

    lv_obj_set_style_text_color(ui_Day, lv_color_hex(0x374752), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_Day, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_Day, &lv_font_montserrat_20, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_day

    ui_day = lv_label_create(ui_Screen2);

    lv_obj_set_width(ui_day, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_day, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_day, 193);
    lv_obj_set_y(ui_day, -56);

    lv_obj_set_align(ui_day, LV_ALIGN_CENTER);

    lv_label_set_text(ui_day, "Wednesday");

    lv_obj_set_style_text_color(ui_day, lv_color_hex(0x374752), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_day, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_decor(ui_day, LV_TEXT_DECOR_UNDERLINE, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Lable0

    ui_Lable0 = lv_label_create(ui_Screen2);

    lv_obj_set_width(ui_Lable0, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Lable0, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Lable0, 104);
    lv_obj_set_y(ui_Lable0, -95);

    lv_obj_set_align(ui_Lable0, LV_ALIGN_CENTER);

    lv_label_set_text(ui_Lable0, ":");

    lv_obj_set_style_text_color(ui_Lable0, lv_color_hex(0x374752), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_Lable0, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_Lable0, &lv_font_montserrat_48, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Lable1

    ui_Lable1 = lv_label_create(ui_Screen2);

    lv_obj_set_width(ui_Lable1, LV_SIZE_CONTENT);
    lv_obj_set_height(ui_Lable1, LV_SIZE_CONTENT);

    lv_obj_set_x(ui_Lable1, 113);
    lv_obj_set_y(ui_Lable1, -56);

    lv_obj_set_align(ui_Lable1, LV_ALIGN_CENTER);

    lv_label_set_text(ui_Lable1, "/    /     /");

    lv_obj_set_style_text_color(ui_Lable1, lv_color_hex(0x374752), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui_Lable1, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui_Lable1, &lv_font_montserrat_20, LV_PART_MAIN | LV_STATE_DEFAULT);

    // ui_Button2

    ui_Button2 = lv_btn_create(ui_Screen2);

    lv_obj_set_width(ui_Button2, 61);
    lv_obj_set_height(ui_Button2, 50);

    lv_obj_set_x(ui_Button2, 14);
    lv_obj_set_y(ui_Button2, 120);

    lv_obj_set_align(ui_Button2, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Button2, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
    lv_obj_clear_flag(ui_Button2, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_add_event_cb(ui_Button2, ui_event_Button2, LV_EVENT_ALL, NULL);
    lv_obj_set_style_opa(ui_Button2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
}
void ui_Screen3_screen_init(void)
{

    // ui_Screen3

    ui_Screen3 = lv_obj_create(NULL);

    lv_obj_clear_flag(ui_Screen3, LV_OBJ_FLAG_SCROLLABLE);

    // ui_Button3

    ui_Button3 = lv_btn_create(ui_Screen3);

    lv_obj_set_width(ui_Button3, 61);
    lv_obj_set_height(ui_Button3, 50);

    lv_obj_set_x(ui_Button3, 14);
    lv_obj_set_y(ui_Button3, 120);

    lv_obj_set_align(ui_Button3, LV_ALIGN_CENTER);

    lv_obj_add_flag(ui_Button3, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
    lv_obj_clear_flag(ui_Button3, LV_OBJ_FLAG_SCROLLABLE);

    lv_obj_add_event_cb(ui_Button3, ui_event_Button3, LV_EVENT_ALL, NULL);
    lv_obj_set_style_opa(ui_Button3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
}

/**
 * @brief 旋转图片
 *
 * @param img
 * @param v
 */
static void set_angle(void *img, int32_t v)
{
    lv_img_set_angle(img, v);
}
static void lv_example_img_3(void)
{
    LV_IMG_DECLARE(ui_img_fan_png); // 图片资源声明
    /*Now create the actual image*/
    lv_obj_t *img = lv_img_create(lv_scr_act());  // 创建Image对象
    lv_img_set_src(img, &ui_img_fan_png);         // 设置显示的图片源
    lv_obj_align(img, LV_ALIGN_CENTER, -83, -47); // 居中偏移50，50处对齐

    lv_img_set_pivot(img, 31, 33); // 围绕Image对象中间旋转 x y 像素/2
    lv_anim_t a;
    lv_anim_init(&a);                                      // 初时化动画变量
    lv_anim_set_var(&a, img);                              // 设置动画关联的对象img
    lv_anim_set_exec_cb(&a, set_angle);                    // 设置动画执行的回调函数set_angle
    lv_anim_set_values(&a, 0, 3600);                       // 设置动画的范围，这里是角度0~360度
    lv_anim_set_time(&a, 1000);                            // 设置动画duration时间1000毫秒 = 1秒
    lv_anim_set_repeat_count(&a, LV_ANIM_REPEAT_INFINITE); // 设置动画重复次数，这里是无穷次
    lv_anim_start(&a);                                     // 启动动画播放
}

void ui_init(void)
{
    lv_disp_t *dispp = lv_disp_get_default();
    lv_theme_t *theme = lv_theme_default_init(dispp, lv_palette_main(LV_PALETTE_BLUE), lv_palette_main(LV_PALETTE_RED),
                                              true, LV_FONT_DEFAULT);
    lv_disp_set_theme(dispp, theme);
    ui_Screen1_screen_init();
    ui_Screen2_screen_init();
    ui_Screen3_screen_init();
    lv_disp_load_scr(ui_Screen1);
    lv_example_img_3();// GIF播放和旋转图片
}
